package com.hgc.ch03;

import java.util.concurrent.atomic.AtomicBoolean;

/**
 * Created by 01367627 on 2019/7/10.
 */
public class AtomicBooleanExample {
    public static void main(String[] args) {
        AtomicBoolean ab = new AtomicBoolean(false);
        ab.compareAndSet(false,true);
        System.out.println(ab.get());
    }
}
